package com.beijiteshop.shop.model.entity

import com.beijiteshop.shop.model.api.response.ProductBean
import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 * 商品列表Item
 */

data class ProductItemEntity(override val itemType: Int, val spanSize: Int, val data: ProductBean?): MultiItemEntity{
    companion object{
        /**
         * 头部--抢购
         */
        const val TYPE_HEADER_RUSH = 1

        /**
         * 头部--推荐
         */
        const val TYPE_HEADER_REC = 2

        /**
         * 抢购商品
         */
        const val TYPE_RUSH_GOODS = 3

        /**
         * 普通商品
         */
        const val TYPE_COMMON_GOODS = 4

        const val SPAN_SIZE = 2
    }
}